package generics_and_collections.equals;

import java.util.Comparator;

/**
 * Created with IntelliJ IDEA.
 * User: Sam
 * Date: 05/02/14
 * Time: 21:02
 * To change this template use File | Settings | File Templates.
 */
public class PersonSorter implements Comparator<Person> {

	public PersonSorter() {

	}

	/**
	 * uses our own compareTo() implementation.
	 */
	public int compare(Person a, Person b) {
		return a.compareTo(b);
	}
}
